import { MCPServer, MCPServerConfig } from "mcp-framework";

export class HTTPMCPServer {
    private server: MCPServer;

    constructor(config: MCPServerConfig) {
        if (config.transport?.type !== 'http-stream') {
            throw new Error('config.transport.type 必须是 http-stream');
        }
        this.server = new MCPServer(config);
    }

    async start() {
        await this.server.start();
    }

    async stop() {
        await this.server.stop();
    }
}
